import { createApp } from "vue";
import App from "./App.vue";
// npm install vue-cache-optimization -D
import {
  useDrag,
  useLazy,
  useBase64,
  useResize,
  useScroll,
} from "vue-cache-optimization"; // ./utils vue-cache-optimization
import "vue-cache-optimization/useScroll.css" // 引入 useScroll 的时候, 需要引入滚动条样式
import utils from "vue-cache-optimization";
console.log("main.ts utils...", utils);

const app = createApp(App);
// @ts-ignore
app.use(useDrag);
app.use(useLazy as any);
app.use(useBase64 as any);
app.use(useResize as any);
app.use(useScroll as any);

app.mount("#app");
